﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuIconSelector.aspx.cs" Inherits="Sdepci.InfoCode.Web.Authority.MenuIconSelector" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>菜单图标</title>
    <link rel="stylesheet" type="text/css" href="../Css/Style.css" />
    <link rel="stylesheet" type="text/css" href="../Css/Backstage.css" />
    <script type="text/javascript">
    function GetMenuIcon()
    {
        var menuIcons = document.getElementsByName("FuncIcon");
        for(var i = 0; i < menuIcons.length; i++)
        {
            if(menuIcons[i].checked == true)
            {
                self.returnValue = menuIcons[i].value;
                self.close();
            }
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <div id="Template" style="width:265px; height: 385px;overflow: auto;text-align:left;border:solid 1px #808080;padding:10px 10px 10px 10px; margin: 0px auto 0px auto;" runat="server">
            <div style="width:255px; height: 22px;text-align: left;border:solid 1px #efefef;margin:1px 0px 1px 0px;">
                <input type="radio" id="{MenuIcon}" name="FuncIcon" value="{MenuIcon}" {checked} />
                <img src="../Images/MenuIcon/{MenuIcon}" alt="" style="width: 20px;height: 20px; vertical-align: bottom;" />
                <label for="{MenuIcon}" style="cursor:pointer;">{MenuIcon}</label>
            </div>
        </div>
        <div id="buttonregion">
            <input type="button" class="button" value="确定" onclick="javascript:GetMenuIcon();" />
            <input type="button" class="button" value="取消" onclick="javascript:self.close();" />
        </div>
    </div>
    </form>
</body>
</html>
